home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _AFB3373CE6FC41999ACCF3CFCAC9BD84 < prev    next >
Encoding:
Text File  |  2005-08-12  |  2.4 KB  |  96 lines

  1.  
  2. shader()
  3. {
  4.     Cull("ccw")
  5.     sortweight("translucent14")
  6.  
  7.     stream("color", 0)
  8.  
  9.     pass()
  10.     {
  11.         Pixelshader("SunGlow.psh")
  12.         tmu()
  13.         {
  14.             TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
  15.             TexMod("rotate", "lin", 0, -5, 0.5, "none", 0, 0, 0)
  16.             TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
  17.             texture()
  18.             {
  19.                 Image("SunRays.dds")
  20.                 addressfunc("clamp", "clamp", "clamp")
  21.             }
  22.  
  23.         }
  24.         tmu()
  25.         {
  26.             TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
  27.             TexMod("rotate", "lin", 0, 5, 0.5, "none", 0, 0, 0)
  28.             TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
  29.             texture()
  30.             {
  31.                 mapchannel(0)
  32.                 Image("SunRays.dds")
  33.                 addressfunc("clamp", "clamp", "clamp")
  34.             }
  35.  
  36.         }
  37.  
  38.  
  39.         BlendFunc("one", "one")
  40.         DepthFunc("always", 0)
  41.  
  42.         tfactor(1,1,1,1)
  43.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  44.         NoFog()
  45.     }
  46. }
  47.  
  48.  
  49. shader()
  50. {
  51.     Cull("ccw")
  52.     sortweight("translucent14")
  53.  
  54.     stream("color", 0)
  55.  
  56.     pass()
  57.     {
  58.         tmu()
  59.         {
  60.             TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
  61.             TexMod("rotate", "lin", 0, -5, 0.5, "none", 0, 0, 0)
  62.             TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
  63.             texture()
  64.             {
  65.                 Image("SunRays.dds")
  66.                 addressfunc("clamp", "clamp", "clamp")
  67.             }
  68.             ColorOp("mul", "texture", "tfactor", "current")            
  69.  
  70.         }
  71.         tmu()
  72.         {
  73.             TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
  74.             TexMod("rotate", "lin", 0, 5, 0.5, "none", 0, 0, 0)
  75.             TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
  76.             texture()
  77.             {
  78.                 mapchannel(0)
  79.                 Image("SunRays.dds")
  80.                 addressfunc("clamp", "clamp", "clamp")
  81.             }
  82.             ColorOp("mul", "texture", "current", "current")                        
  83.             AlphaOp("arg2", "texture", "tfactor", "current")                        
  84.  
  85.         }
  86.         tfactor(%sunvisibility, %sunvisibility, %sunvisibility, 1)
  87.  
  88.         BlendFunc("src_alpha", "one")
  89.         DepthFunc("always", 0)
  90.  
  91.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  92.         NoFog()
  93.     }
  94. }
  95.  
  96.